package zut.edu.cs.network.practice6;

public class Rectangle {
	/*Rectangle's width*/
	double width;
	/*Rectangle's height*/
	double height;
	/*Rectangle's color*/
	String color;
	public Rectangle(double width, double height, String color) {
		super();
		this.width = width;
		this.height = height;
		this.color = color;
	}
	public Rectangle() {
		super();
	}
	public double getWidth() {
		return width;
	}
	public void setWidth(double width) {
		this.width = width;
	}
	public double getHeight() {
		return height;
	}
	public void setHeight(double height) {
		this.height = height;
	}
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}
	public double findArea() {
		return this.height*this.width;
	}
	public double findPerimeter() {
		return (this.height+this.width)*2;
	}
	@Override
	public String toString() {
		return "Rectangle [width=" + width + ", height=" + height + ", color=" + color + "]";
	}
}
